package models

import "time"

type Community struct {
	ID   int64  `json:"id" gorm:"column:community_id"`
	Name string `json:"name" gorm:"column:community_name"`
}

type CommunityDetail struct {
	ID   int64  `json:"id" gorm:"column:community_id"`
	Name string `json:"name" gorm:"column:community_name"`
	// omitempty 如果当前字段为空， 默认不返回
	Introduction string    `json:"introduction,omitempty" gorm:"column:introduction"`
	CreateTime   time.Time `json:"create_time" gorm:"column:create_time"`
}
